import { connect } from 'react-redux';
import reducer from '../store/detail';
import { injectReducer } from '../store/reducers';
import { withRouter } from 'react-router-dom';
import store from '../store/createStore';
import Content from '../components/detail/Content';

const mapDispatchToProps = {};

const mapStateToProps = state => ({
  zen: state.zen
});

injectReducer(store, { key: 'detail', reducer });

export default withRouter(
  connect(
    mapStateToProps,
    mapDispatchToProps
  )(Content)
);
